package com.example.springboot.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.lang.NonNull;

public class CompanyApplySealEvent extends ApplicationEvent {

    /**
     * 消费者实体
     */
    private CompanyApplySealConsumer consumer;

    public CompanyApplySealEvent(Object source, CompanyApplySealConsumer consumer) {
        super(source);
        this.consumer = consumer;
    }

    public CompanyApplySealEvent(@NonNull Object source) {
        super(source);
    }

    public CompanyApplySealConsumer getConsumer() {
        return consumer;
    }

    public void setConsumer(CompanyApplySealConsumer consumer) {
        this.consumer = consumer;
    }

    @Override
    public String toString() {
        return "CompanyApplySealEvent{" +
                "consumer=" + consumer +
                ", source=" + source +
                '}';
    }
}
